package com.jxpanda.spring.module.wechat.component.message.pojo.general;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.jxpanda.spring.module.wechat.component.message.pojo.MsgType;
import com.jxpanda.spring.module.wechat.component.message.pojo.WechatMessage;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.SuperBuilder;

@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@Data
public class WechatImageMessage extends WechatMessage {
    @JsonProperty("image")
    private Image image;

    @Override
    public String getMsgType() {
        return MsgType.IMAGE.getValue();
    }

    @Data
    public static class Image {
        /**
         * 媒体文件ID
         */
        @JsonProperty("media_id")
        private String mediaId;
    }
}

